package com.xiaotao;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author xiaotao
 */
public class ThreadUtil {
    private static final ExecutorService executorService = Executors.newCachedThreadPool();

    public static void execute(Runnable task) {
        executorService.execute(task);
    }

    public static void shutdown() {
        executorService.shutdown();
    }
}
